<div class="photos">
  <% if @photo_sets.empty? %>
    <div class="empty">
      No galleries found.
    </div>
  <% else %>
    <%= render :partial => "photo_set", :collection => @photo_sets %>
  <% end %>
  
  <div class="more">
    <% if @photo_sets_pages %>
      <%= render(:partial => "layouts/pagination", :locals => { :total_pages => @photo_sets_pages[1] }) %>
    <% end %>
    <br style="clear:both;"/>
  </div>
  
</div>